﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("ChequeRecibido")>
Public Class ChequeRecibido
    Implements IEntity

    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IdChequeRecibido As Integer

    Public Property NumeroCheque As Integer

    Public Property MontoCobrado As Decimal

    Public Property Diferido As Boolean

    Public Property FechaDiferido As DateTime

    <StringLength(10)>
    Public Property Estado As String

    <StringLength(100)>
    Public Property Observacion As String

    Public Property IdBanco As Integer

    <ForeignKey("IdBanco")>
    Public Overridable Property Banco() As Banco

    Public Property IdRecibo() As Integer

    Public Overridable Property Recibo() As Recibo

    <NotMapped()>
    Public Property ID() As Integer Implements IEntity.ID
        Get
            Return IdChequeRecibido
        End Get
        Set(ByVal value As Integer)
            IdChequeRecibido = value
        End Set
    End Property
End Class
